/*
 * @Author: Salaing
 * @Date: 2025-02-24 10:58:56
 * @LastEditors: Salaing
 * @LastEditTime: 2025-02-26 15:27:40
 * @Description: file contenss
 */
// 写一个冒泡
function bubbleSort(arr) {
    for (let i = 0; i < arr.length; i++) {
        for (let j = 0; j < arr.length - i - 1; j++) {
            if (arr[j] > arr[j + 1]) {
                [arr[j], arr[j + 1]] = [arr[j + 1], arr[j]];
            }
        } 
    }
}

